import request from '@/utils/request'

// 列表
export function ptestList(params) {
  return request({
    url: '/mapi/ptest/list',
    method: 'get',
    params
  })
}

// 详情
export function ptestInfo(params) {
  return request({
    url: '/mapi/ptest/info',
    method: 'get',
    params
  })
}

// 编辑
export function ptestEdit(data) {
  return request({
    url: '/mapi/ptest/edit',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}

// 删除
export function ptestDelete(params) {
  return request({
    url: '/mapi/ptest/delete',
    method: 'post',
    params
  })
}
